package com.houweishi.module.clockbinding.domain;

import com.houweishi.module.clockscope.domain.BizClockingScope;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 员工与打卡类型绑定对象 biz_clocking_binding
 * 
 * @author houweishi
 * @date 2023-03-02
 */
@Data
public class BizClockingBinding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 用户id */
//    @Excel(name = "用户id")
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 员工id */
//    @Excel(name = "员工id")
    private Long staffId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String staffName;

    /** 打卡类型id */
//    @Excel(name = "打卡类型id")
    private Long clockTypeId;

    /** 打卡类型名称 */
    @Excel(name = "打卡类型名称")
    private String clockTypeName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private String age;

    /** 部门id */
//    @Excel(name = "部门id")
    private Long deptId;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phoneNumber;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String deptName;

    /** 时间区间列表 */
    private List<BizClockingScope> scopeList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setStaffName(String staffName) 
    {
        this.staffName = staffName;
    }

    public String getStaffName() 
    {
        return staffName;
    }
    public void setClockTypeId(Long clockTypeId) 
    {
        this.clockTypeId = clockTypeId;
    }

    public Long getClockTypeId() 
    {
        return clockTypeId;
    }
    public void setClockTypeName(String clockTypeName) 
    {
        this.clockTypeName = clockTypeName;
    }

    public String getClockTypeName() 
    {
        return clockTypeName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("staffId", getStaffId())
            .append("staffName", getStaffName())
            .append("clockTypeId", getClockTypeId())
            .append("clockTypeName", getClockTypeName())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
